<?php

namespace common\models\datas;

use Yii;

/**
 * This is the model class for table "{{%customer_coupons}}".
 *
 * @property integer $id
 * @property integer $coupon_id
 * @property integer $customer_id
 * @property integer $use_status
 * @property integer $created_at
 * @property integer $use_time
 */
class CustomerCoupons extends \common\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%customer_coupons}}';
    }
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['coupon_id', 'customer_id', 'use_status', 'created_at', 'use_time'], 'integer']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('common', '自增id'),
            'coupon_id' => Yii::t('common', '优惠券id'),
            'customer_id' => Yii::t('common', '会员id'),
            'use_status' => Yii::t('common', '使用状态（0 未使用 1已使用）'),
            'created_at' => Yii::t('common', '领取时间'),
            'use_time' => Yii::t('common', '使用时间'),
        ];
    }
}
